package org.llc.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 雪花算法配置类
 *
 * @author llc
 * @date 2020/5/15 10:29
 * @since 1.0.0
 */
@Data
@ConfigurationProperties(SnowflakeProperties.PREFIX)
public class SnowflakeProperties {

    /**
     * 认证配置前缀{@value}
     */
    public final static String PREFIX = "security.snowflake";

    /**
     * 终端ID
     */
    private Long workerId;

    /**
     * 数据中心ID
     */
    private Long dataCenterId;
}
